﻿using Cofe.Core.Filter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cofe.Core.Utils
{
    public static class IFilterParserExtension
    {
        public static string FilterToFilterString<T>(this IFilterParser<T> parser,
            IFilter filter) where T : IFilter
        {
            return parser.FilterToFilterString(
                new List<IFilter>() { 
                    filter
                });
        }
    }
}
